package Network;

import java.io.Serializable;
import java.util.ArrayList;

public class Protocol implements Serializable {
	/**
	 * 
	 */
	public final static int Prtlogin = 100;
	public final static int PrtIDerror = 110;
	public final static int PrtPWerror = 120;
	public final static int PrtAccept = 130;
	public final static int PrtLogout = 140;
	public final static int PrtUserLogout = 150;
	public final static int PrtUpdate = 200;
	public final static int PrtCommit = 210;
	public final static int PrtGetProject = 220;
	public final static int PrtSendFolder = 230;
	public final static int PrtSendFile = 240;
	public final static int PrtSendProjectEnd = 240;
	public final static int PrtOpenGroupchat = 300;
	public final static int PrtGroupChatMsg = 310;
	public final static int PrtCloseGroupchat = 320;
	public final static int PrtChatMsg = 330;
	public final static int PrtGetAuth = 400;
	public final static int PrtGiveAuth = 410;
	public final static int PrtNGiveAuth = 420;
	public final static int PrtRevoke = 430;
	public final static int PrtSyncCode = 500;
	public final static int PrtSyncDCode = 510;
	public final static int PrtReqCode = 600;
	public final static int PrtGetCode = 610;
	public final static int PrtOpenCode = 620;
	public final static int prtReqUser = 700;
	public final static int prtConnectedUser = 710;
	public final static int prtDisconnetedUser = 720;
	public final static int PrtReqUserList = 730;
	public final static int PrtGetUserList = 740;
	public final static int PrtUserListAdd = 750;
	private static final long serialVersionUID = 1L;
	
	int cmd;
	int x, y;
	char value;
	String msg,id,id2,pw,path;
	ArrayList<String> list;


	public ArrayList<String> getList() {
		return list;
	}

	public void setList(ArrayList<String> list) {
		this.list = list;
	}

	public String getId2() {
		return id2;
	}

	public void setId2(String id2) {
		this.id2 = id2;
	}

	public int getX() {
		return x;
	}

	public void setX(int x) {
		this.x = x;
	}

	public int getY() {
		return y;
	}

	public void setY(int y) {
		this.y = y;
	}

	public int getCmd() {
		return cmd;
	}

	public void setCmd(int cmd) {
		this.cmd = cmd;
	}
	
	public String getId() {
		return id;
	}

	public void setId(String Id) {
		this.id = Id;
	}
	
	public String getPw() {
		return pw;
	}

	public void setPw(String Pw) {
		this.pw = Pw;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}


}

